package com.weijian.dal.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.io.Serializable;

/**
 * 套餐
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Schema(description = "套餐表")
@TableName(value = "set_meal", autoResultMap = true)
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class SetMeal extends BaseDO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 菜品id
     */
    @TableId(value = "id", type = IdType.AUTO)
    @Schema(description = "商品id")
    private Long id;

    /**
     * 分类id
     */
    @Schema(description = "分类id")
    private Long categoryId;

    /**
     * 套餐名称
     */
    @Schema(description = "套餐名称")
    private String name;

    /**
     * 价格（分）
     */
    @Schema(description = "价格（分）")
    private Integer price;

    /**
     * 商品图片
     */
    @Schema(description = "商品图片")
    private String image;

    /**
     * 规格
     */
    @Schema(description = "规格")
    private String spec;

    /**
     * 销量
     */
    @Schema(description = "销量")
    private Integer sold;

    /**
     * 描述信息
     */
    @Schema(description = "描述信息")
    private String description;

    /**
     * 商品状态 1-正常，2-下架，3-删除
     */
    @Schema(description = "商品状态 1-正常，2-下架，3-删除")
    private Integer status;
}
